import { BaseEntity } from '../../base/entity/base';
import { Column, Entity, Index } from 'typeorm';

/**
 * 医生信息
 */
@Entity('doctor_info')
export class DoctorInfoEntity extends BaseEntity {
  @Column({ comment: '姓名', length: 50 })
  name: string;

  @Column({ comment: '头像', nullable: true })
  avatar: string;

  @Column({ comment: '性别', dict: ['男', '女', '未知'], default: 0 })
  gender: number;

  @Column({ comment: '所属门店', default: 0 })
  shop: number;

  @Column({
    comment: '科室',
    dict: ['内科', '外科', '儿科', '妇产科', '眼科', '口腔科'],
    default: 0,
  })
  department: number;

  @Column({
    comment: '职称',
    dict: ['主任医师', '副主任医师', '主治医师', '住院医师'],
    default: 0,
  })
  title: number;

  @Column({ comment: '简介', type: 'text', nullable: true })
  introduction: string;

  @Column({ comment: '接诊时间', type: 'text', nullable: true })
  receptionTime: string;

  @Column({
    comment: '挂号费',
    type: 'decimal',
    precision: 5,
    scale: 2,
    default: 0,
  })
  registrationFee: number;

  @Column({
    comment: '状态',
    dict: ['离职', '出诊', '暂不出诊'],
    default: 0,
  })
  status: number;
}
